const wxParse = require('../../templates/wxParse/wxParse');

Page({
  data: {
    detail: null
  },
  onLoad: function (options) {
    wx.util.request('common.notify.detail', {
      query: `id=${options.id}`
    }).then(res => {
      res.date = wx.time.toDate(res.created_at);
      this.setData({
        detail: res
      });
      wxParse.wxParse('article', 'html', res.content, this, 5);
    });
  }
})